/*
 * @Date: 2022-03-04 11:07:17
 * @LastEditors: 春贰
 * @gitee: https://gitee.com/chun22222222
 * @github: https://github.com/chun222
 * @Desc: 
 * @LastEditTime: 2022-03-24 17:07:36
 * @FilePath: \web\src\api\module\SysRecord.js
 */
import http from '../http'

const Api = {
    list: '/record/list',
    add: '/record/add',
    edit: '/record/edit', 
    remove: '/record/remove',
    batchRemove: '/record/batchRemove'
}

export const list = data => { 
    return http.request({
        url: Api.list,
        data: data,
        method: 'POST'
    })
}
 
export const add = data => {
    return http.request({
        url: Api.add,
        data: data,
        method: 'POST'
    })
}

export const edit = data => {
    return http.request({
        url: Api.edit,
        data: data,
        method: 'POST'
    })
}

export const remove = data => {
    return http.request({
        url: Api.remove,
        params: data,
        method: 'POST'
    })
}

export const batchRemove = data => {
    return http.request({
        url: Api.batchRemove,
        params: data,
        method: 'POST'
    })
}